72ddf7b73a6bc32d2451a70881b7e18be1074817,portal-impl/src/com/liferay/portal/nio/intraband/proxy/IntrabandProxyUtil.java,IntrabandProxyUtil,extractMethods,#Class#,298

Before Change



			if (id != null) {
				if (Modifier.isStatic(method.getModifiers()) ||
					(method.getParameterTypes().length > 0) ||
					(method.getReturnType() != String.class)) {

					throw new IllegalArgumentException(

After Change


							" must not be static");
				}

				Class<?>[] parameterTypes = method.getParameterTypes();

				if ((parameterTypes.length > 0)) {
					throw new IllegalArgumentException(
						"The @Id annotated method " + method +
							" must not have parameters");
				}

				if (method.getReturnType() != String.class) {
					throw new IllegalArgumentException(
						"The @Id annotated method " + method +
							" must not return String");
				}

				idMethods.add(method);